#include "GateServer.h"
#include "GateClientHandler.h"
#include "JME_JsonFile.h"
#include "JME_Core.h"
#include "DispatchHandler.h"
#include "GateServerHandler.h"
GateServer::GateServer()
{
}

GateServer::~GateServer()
{

}


GateServer::GateServerPtr GateServer::getInstance()
{
	static GateServerPtr _pInstance = GateServerPtr(new GateServer);
	return _pInstance;
}

void GateServer::init()
{
	_clientHandler = boost::shared_ptr<GateClientHandler>(new GateClientHandler);
	_serverHandler = boost::shared_ptr<GateServerHandler>(new GateServerHandler);
	DispatchHandler::init();
}



